import request from '@/utils/request'

// 查询随访登记卡列表
export function listFollow(query) {
  return request({
    url: '/his/follow/list',
    method: 'get',
    params: query
  })
}

// 查询随访登记卡详细
export function getFollow(id) {
  return request({
    url: '/his/patient/getFollow/' + id,
    method: 'get'
  })
}

// 新增随访登记卡
export function addFollow(data) {
  return request({
    url: '/his/patient/addFollow',
    method: 'post',
    data: data
  })
}

// 修改随访登记卡
export function updateFollow(data) {
  return request({
    url: '/his/patient/editFollow',
    method: 'put',
    data: data
  })
}

// 删除随访登记卡
export function delFollow(id) {
  return request({
    url: '/his/follow/' + id,
    method: 'delete'
  })
}
